package com.wobito.pojo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @Author Wangbaba
 * @Date 2024/8/29 15:01
 * @Version 1.0
 */
@Getter
public enum BorrowStatusEnum {

    BORROW(0, "已借阅"),
    OVERDUE(1, "已逾期"),
    RENEW(2, "已续借");

    @EnumValue
    private final int code;

    @JsonValue
    private final String name;

    BorrowStatusEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }
}
